package server

import (
	"log"
	"net/http"
)

func Run(addr *string) {
	// log.SetFlags(0)
	http.HandleFunc("/echo", EchoHandler) //test
	http.HandleFunc("/signal", SignalHandler)
	http.HandleFunc("/v2/signal", SignalHandlerN)
	log.Println("running port:", *addr)
	log.Fatal(http.ListenAndServe(*addr, nil))
}
